import json
from concurrent.futures import ThreadPoolExecutor, wait

import PyQt5
from PyQt5.QtCore import QObject, pyqtSlot, QMetaObject

import cache
from cache import Cache


class CommonAction(QObject):
    def __init__(self):
        super().__init__()

    @pyqtSlot(result=str)
    def getMyInfo(self):
        return json.dumps(Cache.userInfo)

